[NET]: Fix segmentation of linear packets
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 15 Dec 2006 09:38:56 +0000 (09:38 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 15 Dec 2006 09:38:56 +0000 (09:38 +0000)
commit805c949b3493fcff6447f6bc797354510c53ca96
tree778b6cbaa1ca48ca9f2c8db27884a5f3303d02ba
parent28f48c121eee0a2028892f3a24e35ba538b6ac91
[NET]: Fix segmentation of linear packets

skb_segment fails to segment linear packets correctly because it
tries to write all linear parts of the original skb into each
segment.  This will always panic as each segment only contains
enough space for one MSS.

This was not detected earlier because linear packets should be
rare for GSO.  In fact it still remains to be seen what exactly
created the linear packets that triggered this bug.  Basically
the only time this should happen is if someone enables GSO
emulation on an interface that does not support SG.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
linux-2.6-xen-sparse/net/core/skbuff.c
patches/linux-2.6.16.33/net-gso-6-linear-segmentation.patch [new file with mode: 0644]
patches/linux-2.6.16.33/series